﻿namespace Admin.NET.Application;

    /// <summary>
    /// 接收的SocketDatat输出参数
    /// </summary>
    public class ReceiveDataDto
    {
        /// <summary>
        /// 主键Id
        /// </summary>
        public long Id { get; set; }
        
        /// <summary>
        /// 版本
        /// </summary>
        public byte? Version { get; set; }
        
        /// <summary>
        /// 命令
        /// </summary>
        public byte? Cmd { get; set; }
        
        /// <summary>
        /// 路由ID
        /// </summary>
        public int? RouteId { get; set; }
        
        /// <summary>
        /// 盲板ID
        /// </summary>
        public int? BlindId { get; set; }
        
        /// <summary>
        /// NC空白
        /// </summary>
        public Int16? Blank { get; set; }
        
        /// <summary>
        /// 管道
        /// </summary>
        public byte? Pipe { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        public byte? Snr { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        public byte? Rssi { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        public byte? Rssiflag { get; set; }
        
        /// <summary>
        /// NC空白
        /// </summary>
        public Int16? Blank2 { get; set; }
        
        /// <summary>
        /// unix时间戳
        /// </summary>
        public int? Timetick { get; set; }
        
        /// <summary>
        /// 时间
        /// </summary>
        public DateTime? EventTime { get; set; }

    /// <summary>
    /// 节点在线情况
    /// </summary>
    public byte? Online { get; set; }

    /// <summary>
    /// 节点入网数量
    /// </summary>
    public Int16? Onnet { get; set; }

    /// <summary>
    /// 有效数据长度N
    /// </summary>
    public Int16? Datalen { get; set; }

    /// <summary>
    /// 有效数据
    /// </summary>
    public string? Data { get; set; }

    /// <summary>
    /// 有效数据 bit
    /// </summary>
    public virtual string? Data2 { get; set; }

    /// <summary>
    /// 原始数据
    /// </summary>
    public virtual string? AllData { get; set; }
    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime? CreateTime { get; set; }
        
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        
        /// <summary>
        /// 创建者Id
        /// </summary>
        public long? CreateUserId { get; set; }
        
        /// <summary>
        /// 创建者姓名
        /// </summary>
        public string? CreateUserName { get; set; }
        
        /// <summary>
        /// 修改者Id
        /// </summary>
        public long? UpdateUserId { get; set; }
        
        /// <summary>
        /// 修改者姓名
        /// </summary>
        public string? UpdateUserName { get; set; }
        
        /// <summary>
        /// 软删除
        /// </summary>
        public byte IsDelete { get; set; }
        
    }
